package com.wonders.frame.entity;


import com.wonders.frame.core.entity.EntityTemplate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "hui_areas")
public class HuiAreas extends EntityTemplate {


    @Column(name = "name")
    private String name;

    @Column(name = "pid")
    private String pId;

//    @Transient
//    @ManyToOne(cascade={CascadeType.REFRESH})
//    @JoinColumn(name="pid")
//    private HuiAreas parent;
//
//    @OneToMany(cascade={CascadeType.REFRESH, CascadeType.REMOVE}, fetch = FetchType.EAGER)
//    @JoinColumn(name = "pid")
//    private List<HuiAreas> areaChildren;

    @Column(name = "parent_domain_id")
    private String parentDomainId;

    @Column(name = "domain")
    private String domain;

    @Column(name = "seq")
    private String seq;



//    @Column(name = "level")
//    private String level;


//

//
//    @Column(name = "pinyin")
//    private String pinYin;
//
//    @Column(name = "jianpin")
//    private String jianPin;

//    @Column(name = "firstchar")
//    private String firstChar;
//
//    @Column(name = "mergername")
//    private String mergerName;
//
//    @Column(name = "shortname")
//    private String shortName;
//
//    @Column(name = "mergershortname")
//    private String mergerShortName;
//
//    @Column(name = "ing")
//    private String ing;
//
//    @Column(name = "lat")
//    private String lat;
//
//    @Column(name = "remarks")
//    private String remarks;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getpId() {
        return pId;
    }

    public void setpId(String pId) {
        this.pId = pId;
    }

//    public HuiAreas getParent() {
//        return parent;
//    }
//
//    public void setParent(HuiAreas parent) {
//        this.parent = parent;
//    }
//
//    public List<HuiAreas> getAreaChildren() {
//        return areaChildren;
//    }
//
//    public void setAreaChildren(List<HuiAreas> areaChildren) {
//        this.areaChildren = areaChildren;
//    }

    public String getParentDomainId() {
        return parentDomainId;
    }

    public void setParentDomainId(String parentDomainId) {
        this.parentDomainId = parentDomainId;
    }

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }

    public String getSeq() {
        return seq;
    }

    public void setSeq(String seq) {
        this.seq = seq;
    }
}
